package com.hlk.file.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author hlk
 * @version 1.0
 * @date 2020-12-22 9:35
 */
@Configuration
@ConfigurationProperties(prefix = "file")
@PropertySource("classpath:file-${spring.profiles.active}.properties")
@Data
public class ResourceConfig {
    private String host;
}
